<template>
	<div>
		<h3>基础用法</h3>
			<at-checkbox-wall v-model="checked">备选项</at-checkbox-wall>
			<at-checkbox-wall v-model="checked1" disabled>备选项1</at-checkbox-wall>
			<at-checkbox-wall v-model="checked2" disabled>备选项</at-checkbox-wall>
		<h3>多选框组</h3>
			<at-checkbox-group v-model="checkList">
				<at-checkbox-wall label="复选框 A"></at-checkbox-wall>
				<at-checkbox-wall label="复选框 B"></at-checkbox-wall>
				<at-checkbox-wall label="复选框 C"></at-checkbox-wall>
				<at-checkbox-wall label="禁用" disabled></at-checkbox-wall>
				<at-checkbox-wall label="选中且禁用" disabled></at-checkbox-wall>
			</at-checkbox-group>
		<h3>按钮样式</h3>
			<div>
				<at-checkbox-group v-model="checkboxGroup1">
					<at-checkbox-button v-for="city in cities" :label="city" :key="city">{{city}}</at-checkbox-button>
				</at-checkbox-group>
			</div>
			<div style="margin-top: 20px">
				<at-checkbox-group v-model="checkboxGroup2" size="medium">
					<at-checkbox-button v-for="city in cities" :label="city" :key="city">{{city}}</at-checkbox-button>
				</at-checkbox-group>
			</div>
			<div style="margin-top: 20px">
				<at-checkbox-group v-model="checkboxGroup3" size="small">
					<at-checkbox-button v-for="city in cities" :label="city" :disabled="city === '北京'" :key="city">{{city}}</at-checkbox-button>
				</at-checkbox-group>
			</div>
			<div style="margin-top: 20px">
			  	<at-checkbox-group v-model="checkboxGroup4" size="mini" disabled>
			  	  	<at-checkbox-button v-for="city in cities" :label="city" :key="city">{{city}}</at-checkbox-button>
			  	</at-checkbox-group>
			</div>
		<h3>带有边框</h3>
			<div>
				<at-checkbox-wall v-model="checked3" label="备选项1" border></at-checkbox-wall>
				<at-checkbox-wall v-model="checked4" label="备选项2" border></at-checkbox-wall>
			</div>
			<div style="margin-top: 20px">
				<at-checkbox-wall v-model="checked5" label="备选项1" border size="medium"></at-checkbox-wall>
				<at-checkbox-wall v-model="checked6" label="备选项2" border size="medium"></at-checkbox-wall>
			</div>
			<div style="margin-top: 20px">
			 	<at-checkbox-group v-model="checkboxGroup5" size="small">
					<at-checkbox-wall label="备选项1" border></at-checkbox-wall>
					<at-checkbox-wall label="备选项2" border disabled></at-checkbox-wall>
			 	</at-checkbox-group>
			</div>
			<div style="margin-top: 20px">
				<at-checkbox-group v-model="checkboxGroup6" size="mini" disabled>
					<at-checkbox-wall label="备选项1" border></at-checkbox-wall>
					<at-checkbox-wall label="备选项2" border></at-checkbox-wall>
				</at-checkbox-group>
			</div>
		<h3>test</h3>
			<at-checkbox-group v-model="checkboxGroup7" @lastvalue="last">
				<at-checkbox-wall label="备选项1" border></at-checkbox-wall>
				<at-checkbox-wall label="备选项2" border></at-checkbox-wall>
				<at-checkbox-wall label="备选项3" border></at-checkbox-wall>
				<at-checkbox-wall label="备选项4" border></at-checkbox-wall>
			</at-checkbox-group>
	</div>
</template>
<script>
	import { Notification } from '../../lib/index'
	const cityOptions = ['上海', '北京', '广州', '深圳'];
	export default {
		data(){
			return {
				checked: true,
				checked1: false,
        		checked2: true,
        		checkList: ['选中且禁用','复选框 A'],
				checkboxGroup1: ['上海'],
        		checkboxGroup2: ['上海'],
        		checkboxGroup3: ['上海'],
        		checkboxGroup4: ['上海'],
        		cities: cityOptions,
        		checked3: true,
				checked4: false,
				checked5: false,
				checked6: true,
				checkboxGroup5: [],
				checkboxGroup6: [],
				checkboxGroup7: []
			}
		},
		methods:{
			last(vals){
				console.log(vals)
			}
		}
	}
</script>